<template>
  <basic-container>
    <avue-tabs :option="tabsOption" @change="handleChange"></avue-tabs>
    <template v-if="tabsType.prop==='0'">
      <terminal />
    </template>
    <template v-else-if="tabsType.prop==='1'">
      <equipment />
    </template>
  </basic-container>
</template>

<script>
import terminal from "./component/terminal";
import equipment from "./component/equipment";
export default {
  components: {
    terminal,
    equipment
  },
  data() {
    return {
      tabsType: {},
      tabsOption: {
        column: [
          {
            label: "终端管理",
            prop: "0",
          },
          {
            label: "设备管理",
            prop: "1",
          },
        ],
      },
    };
  },
  created() {
    this.tabsType = this.tabsOption.column[0];
  },
  methods: {
    handleChange(column) {
      this.tabsType = column;
    }
  },
};
</script>

<style>
</style>
